#include<stdio.h>
#include"Singly_linked_list.h"
int main()
{

    list x = NULL;
    DATA a = {"this is A",0};
    DATA b = {"this is B",1};
    DATA c = {"this is C",2};

    list_append(&x, a);
    list_append(&x, b);
    list_append(&x, c);

    puts("操作前：");
    printlist(x);
    puts("");
    NODE *p = x;
    printmem(p,12);
    //list_pop(&x,1);
    list_clear(&x);
    printmem(p,12);
    // list_modify(x,2,a);


    //list_insert(&x,0,c);
    puts("操作后：");
    printlist(x);
    getchar();
    return 0;
}
